package StudyCode.summary.myfile;

import java.io.File;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class DeleteFileAndDirectory {
	public static void main(String[] args) {
		File file = new File("E:\\Copy\\1.txt");
		boolean delete = file.delete();

		System.out.println(file.getPath() + " 文件是否被删除? : " + delete);

	}
}
